package cn.dckeji.gameBox.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lucas
 * @since 2018-08-20
 */
@TableName("game_startboxlog")
public class Startboxlog extends Model<Startboxlog> {

    private static final long serialVersionUID = 1L;

    /**
     * 盒子日志编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 登录人
     */
    private String nickName;
    /**
     * 登录时间
     */
    private Date loginTime;

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Override
    public String toString() {
        return "Startboxlog{" +
                "id=" + id +
                ", nickName='" + nickName + '\'' +
                ", loginTime=" + loginTime +
                ", openId='" + openId + '\'' +
                '}';
    }

    /**
     * 微信openid
     */
    private String openId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
